That's a very good idea!
A neat demostration of using templates too.

(I'd rate your post but the system won't let me until I rate someone else first)