Revision after 'The kernel error pattern' section. The code won't work properly as it starts with a rateOfClimb of 0.