Added arrays and global variables

Also started adding class although I will remove them since they're not
suited to thiks langiage