Refactored latest version + profile class creation

Profile class for pins