Adding models pseudocode