Principles of Reactive Programming. Homework 4. Implemented the rest methods, but some bugs are present