Wrote Interface Listener. Should work now.
Added ArrayList and Functions