add sleep

Imported time and added sleep for 10 seconds
loop 3 times

Added a while loop so it is call three times.