Simplyfying code (setting data)
Setting variables using functional programming style