Working on i importance sampling