added trip class and purchase controller