Defining model client side