Rewrite Toy Language in linked list way