mod 4, first attempt