Complete working model without RVM