Implement the function of create new client