added class model and rendering