Comparison of arrays now works
Added a proper controller object