Added a typeclass around an Int to represent Q
Make implicit conversion from Double to Q