Beginner code trying basic list operations.