Shari -advanced version by masana - simon goinard