Divided client code into logical modules