Added Window class
Added BaseExcepion