Modernized, simplified, and fixed demo7 (dragon).