implement scheduler pattern test/example