Add solution to exercise 5 of extending mantid course