portfolio code architecture