Completed excercise 3 - waveform