finished number 15 with memorization