added thread-safe construction to cashier-class and start to create 'example' for test cashier-class