succesfully tested removeLast method in main