Basic data structures implementation.