Added files for class heirarchy. Also set up namespaces.