Introduce Scope concept

Closes #1