add init solution / fix pseudocode