Feature/subscription

Implement #7.
This should not be handled as a separate topic.