simple examples in scala