Adapter Design Pattern code: 3 - Changed fwrite() to just echo for display in browsers.