Homework 4 - Problems 1 to 7 - solved.