Adding partial functions for problem 11