Second assignment of course Reactive Programming in scala