added code example and source link