completed non-optional parts of File and Exceptions lab