Made the class work in qml