this should work well enough for example code