completed instance methods in models and tested driver code