working on ObjectScript's example