Starting working for DoF calculator