Attend every class and work to stay focused in class.
Unless you are really sick, have a hospitalized immediate family member and need to be with them, or have lost a close family member, don’t miss class. Much of life is just being where you are suppose to be when you are suppose to be there. And, life isn’t always entertaining. If you must miss class, find out what you missed from a classmate and make sure to attend the very next class session prepared.