If you want to take final exams then you should attend classes and learn the material