finished basic functionality for saving foods