data structure practice, easy to understand