You can have your residence permit for the purpose of studying extended before it expires if you meet certain requirements.