Add in code for lab7 bonus