unfinished code explanation