distance, time in constructor