Sample code using rxjava