Task 3 for TU Dresden course ECG