separate a Model to two class and using inherit