use namespaces

use namespaces and divide classes.