passing function for TDD challenge exercise