playing around with relational algebra in scala