added Answers and some sample Code for the answers