you might have forgotten to add zero parameter constructor, but your code is really nice one.
it helps me alot. thanks......... .....