Implementing class functions

Eq, Num, Show, Ord