Added up to problem 10