Lab 3 Function Definitions