As we saw in the class review, it's not actually necessary to have a separate "one line" calculation function -- the "switch line" function will still give correct results even if both lines are the same.