Homework 3 was having error

Please check and include if you think its right.