You might want to read this, which I think fits what you are looking to do, but just realize it is meant for sub-categories