New function

Changed the code for member