adds a Q module as rational number class