configure class and refference