A workable version with 1 error