Updating class members in Route class