Question 2_1 solution and simple linked list implementation