this is basic python problem solution