Config element need to extends the object not the class