Add solutions to exercise4