question regarding ordering of function definitions