I got it and its a member function but then giving you the code would not help but you should make a try and then its very straight forward.