Put your phone on silent or Do Not Disturb. You can also turn off notifications on your computer. Then it will be easier to focus on your schoolwork.