rework classes array