Where's that from? It sounds like a Head First end of chapter exercise.
Please post what you have got already; we don't do other people's homework, but are only too pleased to help when people show where they have got stuck.
Post by:autobot
Could you hold this puppy for a sec? I need to adjust this tiny ad:
a bit of art, as a gift, the permaculture playing cards