updated pictures, code example