Base for section 2's assignment.
Solution for 1.a