Copied the examples code to a dedicated, simple app