committed excersice solutions for lecture 7