Does this work?  Doesn't look like it should. This looks exactly like the solutions of a few other students except there are a few name changes which result in the code not working.  I recommend starting from scratch and making sure YOUR solutions works.