*changed lab3 waveform in order to show the same test as from pdf
*changed counter so had correct size out
*changed mem for counter change