completion: differentiate between functions and methods.