Added complete homework 3