QRS, P, T waves implementation