Refactored profile with a for loop