my solution to cc