Recreate MHartls sample_app with a few changes