created class for temperature data