finish the homework 3 of 61b