connected the labels and created all the variables