Extract history as class