Make example run

The example code runs now, without hard faulting! Horray!