demo for CoreGrapics tutorial