Code sample now v0.7.4 compliant