Function inOutQuart