Example for drawPath mathod