What is a method?