build class