Learning how to keep safe