dom is built by class