challenge 31 (works with 5 milliseconds delay)