Added mac sample

Added mac sample