Implemented removeAtIndex method