create a new instance of cometition class