40. Every person who contravenes section 7 or 8 or fails to comply with any provision of a regulation made under subparagraph 2, 3 or 4 of the first paragraph of section 37 to contravene which is an offence is guilty of an offence and liable, in addition to costs, to a fine of $50 to $500.