Hammer projection working from C, solution even more elegant than the scheme original