making use of ActiveModel::Serialization