Simplex and MacDonald codes over Rq