OOP Principles II prob 1 & 2

Problem 1 and 2 of OOP Principles II