Implemented 'save' method