Demo with array