Final version for the homework 1 part 1