Sending the name along with tempertures to a function