CS12 Lab Session 3 Solution