homework for MOOC reactive-programming-principles