wrote code for temperature conversion