Reactive programming in Scala - Assignment 2