In this example, mongoid is an object mapping for MongoDB and- as many other database gems built for rails-
it also inherits from ActiveModel the same way as Activerecord, which provides a common interface for many features such as validations,
callbacks, translations, etc.