added example with better connection pooling and better structure (example #5)