improving the trips model with some OO