Updated ex1 : added pause after work