Placing definitions outside the main function