Intro-to-Computer-Programming: Linked list with weights.