Added solutions to the lecture 4 exercises.