added: photo & file class hierarchy
edit: namespace in common_defined