Create Q and H