Lecture 4

Updated extra credit to work more functionally