a couple of simple examples of data manipulation code