solutions to 6
added exercises to problem set 8