starting part3(hw3)