trying out a few things in scala