Add legacy code example