added sample for implementing an increment operator