Added MWindow class

Another class that might be useful.