Added an example and made this prototypal