all solutions for HW2