Code

Code and tests for the exercise sheet 2.