Fixing 2 compile errors on example files