Create class for updating time.