I tested your posted solution with the input given in your assignment and it didn't seem to perform correctly. This was posted back in April though, have you already wrapped up this assignment?