deletet old window and camera class and rewrote them