...if it's homework, why are you simply asking us?

it would be better to write it and ask "how can this be improved?"
than not and ask "how can this be done?"

but that's just my opinion...
hex



--=20
* =A0my blog is cooler than yours: http://serialhex.github.com
* =A0The wise man said: "Never argue with an idiot. They bring you down
to their level and beat you with experience."
* =A0As a programmer, it is your job to put yourself out of business.
What you do today can be automated tomorrow. ~Doug McIlroy