added constructor and instance methods