if statement added for question four along with an alert and comments for each.