Adding code to chapter 02 (priority)