implemented basic save and destroy