Add code for lab 5