Solutions to problem id hamm and prot