In the code for PG, the code is calling options.ϵ but this is not an attribute Also, the code is incrementing k twice per iteration