Case study 2 – gateway detailed