added another example and sleep function