Added some starting code for contains, getEndTime