just some simple example code that i have put together