Created class for transfering data between client and handler