WIP: refactor controller (meal calculations)