Two phases example