Wrote the second bit for the third part.