Completes 6.9-6.13 exercises on Profiles