Final Code for public Test Drive 1