Stock options as barrier contingent claims