Added class for asyncTask and removed the code duplication from many
other classes