homework on functions