Trying to fix the error. Believe it is the OOP design that is wrong, line 587 in particular is not inheriting the variables of the parent class