Removed some unused code in problem 8