creates linked list and steps through it