Modified Examples/flap.c