Extended the lazy code to include everything in the examples so far.