A comprehensive mathematical approach to exotic option pricing