Add mac.hpp
add mac.cpp
add a different mac.cpp
Merged mac.cpp