creating variables and testing codes