exercise with using BOM function