Implement the prev method