Processing Code

Reads data and calculates result