Finished code for lab 01.