Fixed bug of namespace. Started to append inheritance function to class system.