Principles of Reactive Programming. Homework 2. Demux implementation. part 2