correcting the function signature for prob8