Monte Carlo Structure to price a barrier option