Added listings code from book