Working code for three tentacle and protocell