Added soln using Object.create() instead of new keyword