First attempt at challenge, passes tests
Refactor to streamline retrieval of filepath arg