Added code for bot task 22