Finished Section 3 of practical 4