Part of HW3 solution from Office Hours 3.5
Part of HW3 solution from Office Hours 3.5