Implemented save method for adding entities