JS4:Task6 adding b!=0 check; Task8 adding 'and'