mod-4-solution