created class for creating window, handling input