rect: moved from layout
session: the session structure is not needed
window: first prototype
example