Added functions to problem 11 (still not functional)