Classes to work with mad and LHC optics