copied from - https://github.com/hackweekday/HW2012KUL/tree/master/qrevent_client_n_server/client