Solution to the first couple of exercises.