.log and alert exercise