Create SingleDofJoint and MultiDofJoint classes