move ArrayElement, LineElement into factory object.