add methods to Scala Wrapper (5) (window)