Little scala tutorial demonstrating functions and objects