creating instance methods