Added a second attempt, need to solve the w2 + w1 checking issue.