Finished the task 3 code of backEnd.py. Testing has been done on it and it works.