A2 Problem 2 nearly complete