Final version of the second interation.
added exception package and main class