Code examples for reactive programming