Bug 927862 - Implement AttentionWindow

fixed and added a test.