function [value,isterminal,direction] = event1(t,y)

value= [y(1) ; t-5];
isterminal = [true ; false];
direction = [];
