I would like to read this code if comments were there it would be easier and if you could post some output it would be great.