Factory

Implementation my own class Factory which have the same behavior as Struct class