finish class