Added updateView function; Changed demo model to use constructor function for testing purposes