Semirings and their Applications