obviously this isn't synchronous in real life, but this whole function is just for documentation/demonstration purposes.