Exploring a different way of assigning values

Chenged the way to assign values.