refactored to LineItems class