Adding solutions to exercise 10
small change to 10