Problems 3 to 9 - HomeWork 1