Added FormatM class