the first flight-crews pilot-in-command was rather shocked upon returning for his second shift , and noticing this rather young looking captain monitoring the cockpit while the pilot-in-command was fast asleep and snoring loudly next to him .