attempting to clean up grocery app with class