implement mpq question