Changed: Example to be a class and fixed bug with bubble sort algorithm.