last code sample, some work on linked structures