two more assignments added, for sorting numbers and reversing string