Added v2 of problem 41