use getData() in the example