Simple implementation for data structures for learning purpose