Add class and unit test for mac address