CMOC / EARLY / 01
Middle school math
Ratio, geometry and algebra done thoroughly.
Open the syllabusCanada · Canadian Mathematical Society · olympiad path
The Canadian Mathematical Olympiad is Canada's national olympiad for advanced high school students, and nobody enters it by signing up. Every writer is invited by the Canadian Mathematical Society, almost always on the strength of the Canadian Open Mathematics Challenge the October before. From the CMO, and from a few other contests, the CMS chooses Math Team Canada for the International Mathematical Olympiad each July. This guide follows that road as the CMS itself describes it, page by page, with nothing added and no promises: who is invited and how, what the 2026 olympiads looked like in numbers, what changes from 2027, what an olympiad problem asks for, and six problems of ours with complete proofs.
Live online since 2020 · 10,000+ students · every problem and proof here written by our teachers
The short answer
The Canadian Mathematical Olympiad (CMO) is the Canadian Mathematical Society's invitation-only national olympiad: five questions in three hours, with a junior version, the CJMO, for Grade 10 or below. Invitations go mainly to top Competitive Division writers on the COMC, and the CMS selects the IMO team from results like these. Modern Age Coders teaches olympiad mathematics live online, in a batch or one to one.
Training for the olympiad road
The competition course is where proofs are written and marked every week. The Waterloo contests course adds CEMC's written papers as regular practice. The middle school competitions course is the starting point for students in Grades 5 to 8.

CMOC / 01
Number theory, combinatorics, algebra and geometry, taught as proof, for students aiming at the COMC and beyond.
Open the syllabus →
CMOC / 02
CEMC's written papers as monthly milestones on the way to the COMC.
Open the syllabus →
CMOC / 03
For Grades 5 to 8: contest habits years before the first COMC.
Open the syllabus →The road
This is the sequence the CMS describes across its competition pages, read on 22 October 2026. Each row says what the CMS says about that stage, and where.
| Stage | How a student gets there | When | CMS page |
|---|---|---|---|
| COMC | Open: "open to students in all locations, at all grade levels", entered through a school | October; Thursday, October 29, 2026 this year | COMC 2026 |
| CJMO | By invitation: "Up to 20 students who are top scorers on the COMC and are in grade 10 or less" | The same sitting as the CMO | CMO |
| CMO | By invitation, mainly from the COMC Competitive Division, plus a few other routes | "held each March" up to 2026; the CMS plans to hold it earlier from 2027 | CMO and Repêchage |
| APMO | By invitation: "about 20-30 students" each year "based on their results in other competitions, such as the COMC" | "held each March" | APMO |
| Math Team Canada | "Canadian team members are chosen based on their results in previous competitions and their eligibility to represent Canada at the IMO." | In 2026, announced on May 7 | IMO |
| IMO | The team, plus some alternates, trains "for one or two weeks" before the competition | Next: July 16 to 26, 2027, Budapest, Hungary | Competitions and Prizes |
The CMS puts the heart of it in one line on its IMO page: the COMC and the CMO are "Two important Canadian competitions on the road to the IMO." Every stage after the COMC is by invitation. The CMS Prizes and Awards page adds that to be invited beyond the COMC, "students usually need to be Canadian citizens (or permanent residents)", although they may be studying in Canada or abroad.
Sources: CMS, CMO and CJMO, CMS, IMO, CMS, APMO and CMS, Competitions, all read on 22 October 2026. We are an independent teaching company: the CMS has no link with us, and we have no role in who is invited or selected.
Invitations
The CMS states plainly that "All students require an invitation from the Canadian Mathematical Society in order to participate." Its pages describe the routes to that invitation as follows.
| Route | In the CMS's words |
|---|---|
| The COMC, Competitive Division | "The top 75-100 qualifying students from the COMC Competitive division will be invited to the CMO." |
| The CJMO from the COMC | After the CMO invitations, the CJMO invites the next 20 qualifying young students |
| Alberta and Quebec contests | By "traditional arrangement", the top winners from the Alberta High School Mathematics Competition (Part II) and the AMQ secondary concours are invited to the CMO |
| International invitees | Students invited to represent Canada at the APMO are "normally also invited" |
| Not both | "Anyone invited to the CMO is not invited to the CJMO." |
| Timing | "Invitations are normally sent out in February." |
The CMS gives the size of the invited group in slightly different ways on different pages. The CMO page says "Typically 75-100 students are invited each year to write the CMO and a further 20 students are invited to write the CJMO."
On the COMC home page the figure is roughly 100 to 120 invitations, covering the CMO and the CJMO together, and the COMC Prizes page says "the top 100 (all figures are approximate)". We print each as its page states it and do not combine them.
From 2026 the COMC has a Competitive Division and a Global Division. According to the CMS Changes page, a CMO invitation is possible only for writers in the Competitive Division, who are also the only ones eligible for prize money.
To be Competitive, a writer must also start the COMC inside a fixed afternoon window set in Eastern time. Our olympiad classes page covers how contests like this compare internationally.
One more change sits behind all of this. The CMS has discontinued the CMO Qualifying Repêchage, a take-home round that used to give students just below the COMC cut a second route in. Its Repêchage page says: "Starting in 2027, we will instead be increasing the number of people invited directly from the COMC to the Canadian Mathematical Olympiads (CMO/CJMO)." For a student aiming at the CMO, the October COMC is now the whole qualifying round.
2026 in figures
The CMS published summary statistics for both 2026 olympiads, held on Thursday, March 12, 2026. They are the clearest public picture of how hard the papers are, even for the students invited to write them.
| Measure | CMO 2026 | CJMO 2026 |
|---|---|---|
| Top score | 31 / 35 | 30 / 35 |
| Mean score | 11.1 / 35 | 17.2 / 35 |
| Median score | 11 / 35 | 18 / 35 |
| Minimum score for the top quartile | 16 / 35 | 23 / 35 |
| Competitors | 95 | 18 |
Our reading, labelled as ours. The CMS Prizes page describes the CMO as "a conventionally-supervised three-hour competition with five questions", and the scores are out of 35, so each question is worth 7 points on our arithmetic. A median of 11 out of 35 means that half of the students invited, all of them among the strongest COMC writers in the country, scored 11 or less. Put another way, a typical invited student solved about one and a half problems completely in three hours. That is not a sign the students were weak; it is what olympiad problems are like, and it is why the CMS warns that "success will require mathematics at a higher level than is taught in most schools".
The CMS IMO page reports the 2026 Team Canada result as "Individual: 1 Gold, 3 Silver, 2 Bronze" and "Team Canada: 13th out of 117 teams". The 2026 IMO was held in Shanghai, China, from July 10 to 21, 2026.
The same page says "Canada has proudly participated in the IMO for over forty years."
The CMS describes the IMO exam as "six questions, split over two days (a total of nine hours of testing)". It calls the IMO "the world championship mathematics competition for high-school students."
The 2027 IMO is listed for July 16 to 26, 2027, in Budapest, Hungary.
Who can be official
The CMS sets the official-participant rules on its CMO page. They follow the IMO rules for representing Canada. A summary, with the CMS wording where it matters:
| Condition | What the CMS requires |
|---|---|
| Citizenship or schooling | A Canadian citizen, or living in Canada and attending school in Canada for the current and previous school year, or since the start of the current year with plans to continue |
| Not yet at university | Not formally enrolled at a university or equivalent, and not yet graduated from secondary school |
| Full-time school | Attending secondary (or earlier) school full-time since the start of the current school year |
| Age | "less than 20 years old as of June 30 of the year of the Competition" |
| CJMO only | In grade ten or earlier |
| Results are public | Writers agree that the CMS may publish their names and schools with the results |
Both papers are three hours long and, the CMS says, "All official participants write at the same time and are proctored by their local school faculty or staff." The CJMO "is not as challenging as the CMO, however some problems may appear in both competitions", and the first CJMO was held in 2020.
What a solution looks like
Olympiad problems do not ask for a number. They ask the student to show that something is always true, or to find every answer and prove there are no others. Here is a standard exercise we use in the first month of olympiad training, with the proof we expect. The problem is a well-known one; the proof as written, and the notes on it, are ours.
Problem 1 (a standard exercise; proof written by us). Prove that n^5 - n is divisible by 30 for every integer n. Proof. Since 30 = 2 x 3 x 5 and 2, 3 and 5 are distinct primes, it is enough to show that 2, 3 and 5 each divide n^5 - n. Factor: n^5 - n = n(n^4 - 1) = (n - 1) n (n + 1)(n^2 + 1). Divisible by 2 and 3: (n - 1), n and (n + 1) are three consecutive integers, so one of them is even and one is a multiple of 3. Divisible by 5: consider the remainder r of n on division by 5. r = 0: 5 divides n. r = 1: 5 divides n - 1. r = 4: 5 divides n + 1. r = 2: n^2 + 1 leaves remainder 4 + 1 = 5, that is 0. r = 3: n^2 + 1 leaves remainder 9 + 1 = 10, that is 0. In every case one factor is a multiple of 5. So 2, 3 and 5 all divide n^5 - n, and since they share no common factor, their product 30 divides n^5 - n. Therefore n^5 - n is divisible by 30 for every integer n. QED
| Step | Why it is there |
|---|---|
| Reduce 30 to 2, 3 and 5 | Turns one hard claim into three small ones, and says why that is enough |
| The factorization | Makes the structure visible: three consecutive integers and one extra factor |
| Consecutive integers for 2 and 3 | A known fact, stated with its reason in one line |
| Five cases for 5 | Every remainder is covered; none is skipped because it "obviously" works |
| The closing line about common factors | Without it, divisibility by 2, 3 and 5 separately would not prove divisibility by 30 |
A student who checks n = 1, 2, 3, 4 and 5 and finds 0, 30, 240, 1020 and 3120, all multiples of 30, has evidence. They do not have a proof, because there are infinitely many integers.
On an olympiad paper, evidence earns little or nothing. The CMS publishes past solutions precisely so students can see what a complete argument looks like.
We look for the claim, every case, and a reason for each step, in that order. A proof missing one of the five remainder cases is marked as incomplete, even if the missing case is easy.
Students rewrite the proof until a classmate who has never seen it can follow it without asking a question.
Five more problems
These are standard olympiad exercises of the kind every training program uses, written up by us; none is taken from a past CMO, CJMO, COMC or IMO paper, and the proofs as written are ours. They cover the four areas olympiads draw on: number theory (above), combinatorics, algebra and geometry. Try each for twenty minutes before reading the proof.
Problem 2. A standard olympiad exercise, not from any CMS paper; the write-up is ours. Combinatorics: an invariant. The numbers 1, 2, 3, ..., 10 are written on a board. A move erases any two numbers a and b and writes the single number |a - b| in their place. After nine moves one number is left. Can that number be 0?
Proof that it cannot. Look at the sum of all the numbers on the board. A move replaces a + b by |a - b|. The difference between these, (a + b) - |a - b|, is twice the smaller of a and b, which is even. So every move changes the sum by an even amount, and the parity of the sum never changes. At the start the sum is 1 + 2 + ... + 10 = 55, which is odd. So the last number is odd, and in particular it is not 0. The idea, finding a quantity that never changes, is called an invariant, and it settles questions that look as though they need a search through every sequence of moves.
Problem 3. A standard olympiad exercise, not from any CMS paper; the write-up is ours. Combinatorics: pigeonhole. Five points are placed inside or on the boundary of a square of side 1. Prove that some two of them are at distance at most √2 / 2 from each other.
Proof. Divide the square into four smaller squares of side 1/2 by joining the midpoints of opposite sides. Every point of the large square lies in at least one small square (a point on a dividing line can be assigned to either). Five points and four small squares means some small square contains at least two of the points, by the pigeonhole principle. Two points in a square of side 1/2 are at most the length of its diagonal apart, which is √((1/2)2 + (1/2)2) = √2 / 2. So those two points are at distance at most √2 / 2.
Problem 4. A standard olympiad exercise, not from any CMS paper; the write-up is ours. Algebra: an inequality. Prove that for all positive real numbers a, b and c, (a + b)(b + c)(c + a) ≥ 8abc, and find when equality holds.
Proof. For positive x and y, (√x - √y)2 ≥ 0 expands to x + y ≥ 2√(xy). Apply this three times: a + b ≥ 2√(ab), b + c ≥ 2√(bc) and c + a ≥ 2√(ca). All six quantities are positive, so the inequalities may be multiplied: (a + b)(b + c)(c + a) ≥ 8√(a2b2c2) = 8abc. Equality in each step needs a = b, b = c and c = a, so equality holds exactly when a = b = c. Note the line about positivity: multiplying inequalities is only safe because every side is positive, and saying so is part of the proof.
Problem 5. A standard olympiad exercise, not from any CMS paper; the write-up is ours. Geometry: the angle bisector. In triangle ABC, the bisector of angle A meets BC at D. Prove that BD / DC = AB / AC.
Proof, by areas. Triangles ABD and ADC share the height from A to the line BC, so the ratio of their areas is BD / DC. Now compute the same areas a second way, using two sides and the included angle. Let the angle at A be 2t, so the bisector makes angle t with each of AB and AC. Then area(ABD) = (1/2)(AB)(AD)sin t and area(ADC) = (1/2)(AC)(AD)sin t, so their ratio is AB / AC. Both expressions are the ratio of the same two areas, so BD / DC = AB / AC. Computing one quantity in two ways is among the most useful ideas in olympiad geometry.
Problem 6. A standard olympiad exercise, not from any CMS paper; the write-up is ours. Algebra: a functional equation. Find all functions f from the real numbers to the real numbers such that f(x + y) = f(x) + 2y for all real x and y.
Solution. Put x = 0: f(y) = f(0) + 2y for every real y. Writing c = f(0), any solution must be f(x) = 2x + c. Conversely, if f(x) = 2x + c for a constant c, then f(x + y) = 2x + 2y + c and f(x) + 2y = 2x + c + 2y, which are equal. So the solutions are exactly the functions f(x) = 2x + c, for any real constant c. The second half, checking that the candidates really work, is the step students most often leave out, and on an olympiad it is part of the answer.
Spend twenty minutes on each problem before reading the proof, then write your own proof from memory the next day. The second write-up is where the learning happens.
Problems 2 and 3 suit a strong Grade 8 or 9 student. Problems 4 to 6 suit students already writing the COMC.
Reduce to primes. Find an invariant. Use pigeonhole. Combine simple inequalities. Compute one thing two ways. Substitute, then check.
Olympiad training is largely the collection of ideas like these, practised until a student reaches for the right one without being told.
A long road
The CMS runs contests for younger students too. This road map is ours, built from the CMS competitions table; the dates are the CMS's, and every stage after the COMC depends on an invitation the CMS alone decides.
| Stage | CMS contests | Our training focus |
|---|---|---|
| Grades 5 to 8 | CJMC, the Canada Jay Mathematical Competition: Grade 8 or under, recommended for Grades 5 to 8; next on Nov. 19, 2026, registration by Nov. 12 | Puzzles, number sense and the first short written arguments |
| Grades 7 and up | CLMC, the Canada Lynx Competition, held on Oct. 1 in 2026 | Speed and accuracy on multiple choice |
| Grades 8 to 10 | COMC each October; the CJMO if invited | Calculator-free algebra and first proofs; one written proof a week |
| Grades 10 to 12 | COMC each October; the CMO and the APMO if invited | Full olympiad training: the four areas, past CMO papers, timed three-hour sittings |
| If selected | Math Team Canada for the IMO | The CMS team camp, not us |
Students do not have to choose one contest family. The CMS says students may register for more than one of its competitions in a year, and many of ours also write the CEMC contests from the University of Waterloo, whose written papers are good proof practice: see our pages on the Euclid, Fermat and CEMC year. The 2026 COMC is on Thursday, October 29, 2026, and its registration closed on Thursday, October 22, 2026, so a student starting now is preparing for the 2027 COMC.
How training works
The CMS advises invited students to "prepare specifically for the competition" and names past problem sets and solutions as the most important resource. Our weekly rhythm is built around that advice; the rhythm itself is ours.
| Session | What happens |
|---|---|
| Class 1 | One idea taught properly (an invariant, a pigeonhole argument, a factorization), then three problems that use it |
| Between classes | One proof written at home, in full, and submitted |
| Class 2 | Last week's proofs returned marked; one past olympiad problem attempted for forty minutes, then discussed |
| Every month | A timed three-hour sitting of five problems, matching the CMO format the CMS describes |
| Every term | One full past CMO or CJMO paper from the CMS archive, marked as strictly as we can |
The 2026 statistics show that even invited students solved few problems completely. The gap is rarely knowledge; it is the ability to turn an idea into a complete argument under time.
That skill only improves through writing proofs and having them marked, week after week, for months.
We do not hand out answer keys or tricks to memorize. We teach students how to think through a problem they have never seen, which is the only thing an olympiad tests.
We do not claim any influence over invitations, and we never promise a CMO place, a medal or a team spot.
Camps and scholarships
The CMS publishes some opportunities connected to the olympiad path. We list them as the CMS describes them; decisions belong to the CMS and to the universities.
| Opportunity | As the CMS describes it |
|---|---|
| Canada Math Camp | A summer camp at the University of Toronto for roughly two dozen Canadian students no older than Grade 10, chosen on COMC performance |
| Regional CMS math camps | Summer camps at universities and CÉGEPs across Canada, some by invitation |
| University of Toronto fellowship | A full-ride undergraduate fellowship for Canadian IMO team members, as listed on the CMS scholarships page |
| University of Waterloo Olympiad Scholarship | For incoming students with a medal standing at the IMO or the other international olympiads it lists |
Scholarship rules and deadlines change, and the CMS page itself shows when each entry was last updated, so families should read the university pages directly before relying on any of this. Our reading only: these are rewards for a very small number of students, and the reason to train for olympiads is the mathematics, which is useful whether or not an invitation ever arrives.
Sources: CMS, COMC Prizes and Awards, CMS, Math Camps and CMS, Scholarship Opportunities, read 22 October 2026.
Where students start
Our stages, used to place a new student.
| Stage | What we see |
|---|---|
| 1. Answer-getter | Finds answers quickly; explains them with examples, not proofs |
| 2. Case-checker | Writes arguments but misses cases or the converse |
| 3. Proof-writer | Writes complete proofs to problems at COMC Part C level |
| 4. Olympiad solver | Makes progress on past CMO problems under time and writes it up cleanly |
Almost every strong student starts at stage 1, because school rewards correct answers rather than complete arguments. The move to stage 3 usually takes a year of weekly proof writing.
Olympiad training is worth doing for its own sake. The habit of proving things carefully pays off in every university mathematics or computer science course.
When you think you have a proof, ask what would happen in the case you did not check.
After finding all the answers, prove there are no others.
Wider catalogue
All taught live online by a teacher who follows the student, in a batch or one to one, for students anywhere in Canada.
CMOC / EARLY / 01
Ratio, geometry and algebra done thoroughly.
Open the syllabusCMOC / EARLY / 02
Logic and patterns before formal proof.
Open the syllabusCMOC / EARLY / 03
First written arguments for Grades 8 to 10.
Open the syllabusCMOC / HS / 01
The curriculum the COMC builds on.
Open the syllabusCMOC / HS / 02
MHF4U and MCV4U, taught beside school.
Open the syllabusCMOC / HS / 03
Counting and probability in depth.
Open the syllabusCMOC / NEXT / 01
Analysis and linear algebra, an early look.
Open the syllabusCMOC / NEXT / 02
The informatics road through CEMC's CCC.
Open the syllabusCMOC / NEXT / 03
Testing conjectures in Python before proving them.
Open the syllabusClass format
Weekdays or weekends, flexible: choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays.
Weekdays
Evening sessions set in Eastern time and shown in each family's zone.
Weekends
Three-hour morning sittings for timed olympiad papers.
1-on-1
A private plan for a student already near the COMC cut.
Written at home, marked and returned.
Olympiad-style sets written by our teachers.
CMS archive papers sat under time.
Invariants, pigeonhole, two-way counting and more.
One class shared from Whitehorse to Halifax.
Train in a batch of fifteen to twenty, or alone with a teacher.
Student work
Some of our olympiad students also learn to program, often to explore a pattern before proving it. A selection is below, and the student labs page has more.

AI and ML
An AI nutrition coach that reads what you eat and works you toward a target.

AI and ML
A chatbot that answers mathematics and programming questions, built and deployed by a student.

AI and ML
An assistant that helps a young person recognise unsafe situations online.

Web app
A weather forecasting site with live conditions for any location.
Fees
Nobody can buy a place at a CMS olympiad, and we do not sell one. What the monthly fee pays for is live teaching, with no term to sign up for.
Free first class
Free
no card required
Group batch
$100 USD
a month, eight live classes
One to one
$150 USD
a month, eight live classes
What families say
Google reviews from our families, reproduced as written.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
Families ask
The CMO is the Canadian Mathematical Society national olympiad for advanced high school students. It is invitation-only, has five questions in three hours, and is the most important competition for students hoping to be selected for Math Team Canada at the IMO.
Mainly through the COMC. The CMS CMO page says the top 75 to 100 qualifying students from the COMC Competitive Division are invited, with a few invitations through the Alberta High School Mathematics Competition, the AMQ secondary concours and the APMO team.
The Canadian Junior Mathematical Olympiad, held at the same time as the CMO. The CMS invites up to 20 top COMC scorers in Grade 10 or below who are not invited to the CMO. It is less challenging, though some problems may appear on both papers.
The CMS had not published a 2027 date on 22 October 2026. The 2026 CMO and CJMO were held on Thursday, March 12, 2026, and the CMS says it plans to hold the olympiads earlier from 2027, so check the CMS CMO page.
The CMS says team members are chosen based on their results in previous competitions and their eligibility to represent Canada at the IMO, and names the COMC and the CMO as two important Canadian competitions on that road. The APMO results are another measure the CMS uses.
No. The 2026 Repechage was the last one. The CMS says it will make up for it from 2027 by sending more olympiad invitations straight from COMC results.
In 2026 the CMS reported a CMO mean of 11.1 and a median of 11 out of 35 across 95 competitors, and a CJMO median of 18 out of 35 across 18 competitors. The CMS warns that success needs mathematics beyond what most schools teach.
Official participants must meet the IMO rules for representing Canada, which the CMS sets out as citizenship or Canadian schooling, must not yet be at university or have finished secondary school, must attend school full-time and must be under 20 as of June 30 of the competition year.
No. Invitations and team selection are decided by the CMS alone. We teach olympiad mathematics and proof writing, and we make no promise of any invitation, score or medal.
Weekdays or weekends, flexible: choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays. We plan in Eastern time and confirm each class in your own province's time.
More to read
Other pages for students in Canada on the contest and olympiad road.
How the world's math olympiads compare.
The University of Waterloo contest year.
Written proof practice in April.
A February warm-up for Grade 11 problem solvers.
AMC 10, AMC 12 and AIME, written by some students in Canada too.
The informatics olympiad road in Canada.
School math support in any province.
Where our Canada pages begin.
Why proofs, not answer keys.
Start here
The first class takes one of our olympiad problems and proves it together, step by step, with the teacher marking the proof as an olympiad marker would. By the end you will have seen how your child argues, where they sit on our four-stage ladder, and what twelve months of training before the next COMC would involve.
Want to read first? How we teach follows a live class, and the course list has each syllabus.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Classes are live on video, taught by our teachers in India, so students join from anywhere in Canada. For the fastest answer, message us on WhatsApp.
A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.
Book a priority demo