Add acessors to Dof class.