Finished all except End of Input exception - can't get this working.