Simple tutorial to use asynchronous function in a synchronous way.