Fixed task3: using awk