class and instance methods