Principles of Reactive Programming. Homework 2. Epidemy, part 1