Implemented Error windows with class example