now inputs numbers from 0 to 999
fixed code structure
fixed code structure
fixed code structure and sort now returns void