Programming with different data structures