implemented task 2 (except last part = get t_end & delta_t from command
line)