added code for variables and constants