Final (non-branched) Copy

This contains the final draft of code, but does not include the separate
branches of the function that are supposed to purposefully return the
wrong answer.