Make the example platform-agnostic