Added more functionality for the profile class