My attempt at the full sample app from hart.