creation of model, service and client