add a FileMode class.