Model of time travels