Compeleted homework 3.3