Problems 1-3

Wrote functions. None of the code is reused between functions.