Modelling cognitive functions using Neuroids