Finally got it working.  I think this fulfills the assignment.