Made save() method