stermi: i think there was an exact example of something like this in Douglas Crockfords book. Ill give you a link in a second