Optimal stopping and American Options with discrete dividens and exogenous risk