Issue #15: window function