Some learning code for scala. Just for fun.