adding q classes