added implementation of Sleep task.