Added code by chapter