With the addition of a operator overload, the error due to refactoring
has been fixed. All test cases pass now.