Create q.class