create save method in Doctor class