simple implement of front
test clear and front