adding SAMS hash program