Added the solution that was used as the first hand-in. Ex1 and 2 need more testing.