adding save method to models