added in a simple scheduler, to test the functionality