Adding solutions to gc and hamm.