cont now takes an argument which is the signal that is passed