added removeLast method