finished hmwk3