added last section on functions