added codes from last codechf '