adding pseudocode and solutions