MACD as classes