Factoring out a Dir module, that simply contains an enumeration of
the two possible directions that memory accesses can take: namely,
read and write.