for homework 3