Code for Data Structures class