You can see that the mastabas were just more elaborate pit graves.
an ancient Egyptian mud-brick tomb with a rectangular base and sloping sides and flat roof; "the Egyptian pyramids developed from the mastaba"
See also: mastabah