Updated the mortgages rules model so that all classes are Serializable
(which is necessary to use them inside the process).