Design of fire safety systems