Variables and solving for w