Bailey Gwynne: The schoolboy's death that 'shocked Scotland'
The 'gentle and caring' boy was stabbed through the heart by another pupil following a row.
The independent inquiry into the fatal stabbing of schoolboy Bailey Gwynne released its findings on Tuesday, almost one year after his death.
Police Scotland said the 16-year-old's killing at Cults Academy in Aberdeen caused "shock across the whole of the country" last October.
The knife attack was carried out by a fellow pupil following a petty row over a biscuit, a court heard earlier this year.
The inquiry into the killing recommended the Scottish Government "give consideration to amending the law in relation to searching pupils".
Bailey Gwynne lived with his parents and four younger brothers in Maryculter, a small village that is an affluent suburb of Aberdeen.
The fifth-year, who previously attended Lairhillock Primary, was a Scout and planned to join the Royal Marines after leaving school.
Bailey went on to study at Cults Academy, where hundreds of pupils, teachers, friends and family left tributes in the days following his death in October 2015.
One friend told a memorial service Bailey was "inspirational" and Cults Academy's head teacher described him a "gentle, caring pupil".
Following his killer's trial, Bailey's parents said they would "always be immensely proud" that he was their son.
They said: "It has always been a true blessing and a privilege to have Bailey and to share the honour of knowing, raising and loving him. That is not something that time or our parting will ever change."
Bailey's 16-year-old killer, a fellow pupil at Cults Academy, was detained for nine years in April. He cannot be identified due to his age.
During his five-day trial in Aberdeen, a picture emerged of a troubled boy who had "never fitted in" and admitted carrying weapons to "act tough and be cool".
The teenager, who described himself as "fat", was often teased for his weight.
Weeks before the stabbing, he searched the internet to find out "how to get rid of someone annoying" and "difference between homicide and murder".
He eventually purchased a 3.3in-long blade from internet retailer Amazon, arranging for it to be delivered to his garden shed to hide the purchase from his parents.
He later told police he bought it online because "they don't check if you're over 18".
During his trial, a witness told the court they had seen him with a knife in school "maybe 25 times" before the stabbing but this was not reported to teachers.
The BBC reported concerns had previously been raised about the killer after he threw rocks at another child while in primary school.
Bailey Gwynne lost his life in what his killer would later describe as a "moment of anger".
Bailey and the boy had rowed at the end of the school lunch break on October 28 after refusing to give another pupil a biscuit.
A fight broke out and Bailey's killer plunged a blade into the schoolboy's chest, piercing his heart.
Paramedic Gary Gillespie arrived at the school in minutes and tried in vain to save Bailey's life. But during the trial, a pathologist told the court he was not surprised the wound was fatal.
Dr James Grieve said even if Bailey had been stabbed outside the doors of a hospital operating theatre with surgeons on standby his survival would have been in doubt.
In the months following Bailey's death, an independent inquiry was launched chaired by Andrew Lowe, chairman of child and adult protection for Renfrewshire.
On Tuesday, it recommended that the Scottish Government consider changing the law to give teachers greater powers to search pupils.
In March, 12 retailers including Amazon and eBay pledged to introduce tougher checks on the sale of knives to keep them out of the hands of children, but the rules are not being enforced in Scotland.
Mr Lowe's review also recommended that the Scottish Government "explore the further legislative controls that can be brought to bear on the purchase of weapons online."
In August, STV News revealed 688 pupils have been excluded from Scotland's primaries and secondary schools over attacks with weapons between 2011 and 2016.