Designing a platform for handling mortgages