What is the right way to assign values to a previously defined variable?