It's very interesting idea to study programming using PR. Unfortunatally I already know cpp and can not try your idea *lol
If you have any insoluble problems with your code I will be glad to help to resolve them and send you a source code for only ~$50 a question.