Initial implementation of behaviours. Added array extension for the index of an object and remove an object