Added 5-stage design (HW5).