solutions to ex6