first example using rxscala, implemented as a simple test case for the moment.