Error
Corrected Integration and Added Second Array