Code for Assignment 2: Linear Lists