working example after mocha