Add getBack() function to the class