When is the pilot in command required to hold a category and class rating appropriate to the aircraft being flown?