Initial pseudocode + problem