BOM and DOM exercises