Feature/subscription

Implement #7.