Constructor for dof and size?