Update linked.cpp