added modified todo example code