Attempted fix after testdrive

working through the errors listed, unable to understand "undefined
variable" on row 45 and row 47 - I thought the functions would define?