[refactor] factory pattern to prototype, and CalorieCalculator introduced