added timeouts to Example.cpp