Completed 'Edge detection' section