Added updateLabels function; Created targetLabel

updateLabels() calculates the new text of targetLabel