further refactor of cc challenge
finalized 1_die solution