Changed the randomisation in main.
Removed unnecessary comments.
Deleted unnecessary methods from Task.