some simple code concerning data structures