implement save method in Patient class