Homework 3.3 done and tested