lab1 boolean exception