fixed type class issues in Operation.hs