Adding Model to work with Rest API.