Fixing code samples