Added some logic and an array :)