Task 3: printing results on console