Gamma-ray bursts and the fireball model