A stray dog appears on the railway, so Thomas sets out to find out who he belongs to - but when he crashes, he needs the help of his new friend