Commented original code from Task 3