begins moving chart model into a constructor