added AsyncTask class for threaded processes