completed driver test code, pseudocode, initial solution