This is a solution to the test excercise