added all three answers

I add all the answers, now to test the code and see where i can fix
mistakes.