correct and copy the SR latch case study