add build of example, add histogram