simple scala prgms