Removed unnecessary code from problem 14