adding some utils functions and examples of prototypal inheritance