added trip constructor