Windowgram class part 1