Exception handling added in week2 B_Scanner