How is the last line meant? I'm pretty sure I've done it correctly but maybe I'm misinterpreting the pseudocode.