solution for variables exercise 2