Modified the client file to create an object