code commented for the main class - resolve a copy of code