Assignment 8 – Task 2 (Energy model – tutorial)