Added Ord i to type signature. as LYAH says, Num is not a sub-type of Ord