Wrote and debugged baseX_digs()