Class sizes increase with teacher shortage