Refactors the example to use my object prototyping method.