hsm sample