Adding object class