Main and auxilliary functions can appear in any order in the definitions window. The only requirement on definition order is that test cases using the function must appear after the main and auxilliary function definitions.