some code I created doing basic data structures using TDD