adding full example for rectangular signal
adding triangular signal