how to use variables in scala