solved the two caos questions.

put the first question in proper package.