Added w wire
Added code for part2