Implement Window class.