I am new to Haskell and I stumbled upon this problem while playing around with classes. So basically instead of defining functions inside a class, I want to define variables