And it just closed a deal to move its headquarters from leased space in Bethesda into its own building in downtown Washington , snagging the Mortgage Bankers Association 's three-year-old , $ 90 million corporate office for $ 41 million in cash .