Exercise for object.js
Adapt to exercise's "function pattern".