added code for quiz 4- Bridge Succesors