Section 231. Whoever, having the management or control of a railroad train while being used for the common carriage of persons, is guilty of gross negligence in or in relation to the management or control thereof, shall be punished by a fine of not more than five thousand dollars or by imprisonment for not more than three years.