Complete two function definition