semi-colons
totalPower should've been defaulted.