simple memory flipflop works