add smashing magazine demo code