Added code for sample chapters