adds solution for grade-school exercise