initial solution to grade-school