Principles of Reactive Programming. Homework 3. Patr 1. Extending Futures