Implemented a reasonable-ish example