Added client model and basic functionality for client