class name changed, new function and example add