add default init of class and fix the call for x.y()