=-= write the code in Mac