Add function to locate the class positon in code

Add function to locate the class positon in code