using destructuring and adding defaults to prob-solve