class MyClass { private var calories = 1000; public function eat (calories) { this.calories += calories; } }