changed the getter from maxMsg
changed the test in the programm.cs