Solved 1st problem