let project = {start: function() { if (!this.checkordinances('sheep')) { alert('to avoid any issues, please check local ordinances prior to starting your sheep farm.'); } else {alert('all set! you already have tacit approval to take up from scratch. enjoy your sheep farming journey!');}}, checkordinances: function(animaltype) { let ordinancespassed = true; /* simulation of checking local laws for the user's area */ return ordinancespassed; }}; project.start();