Cleaned up Problem 14