Four submodules suffice for realizing algebras over commutative rings