Adding class model