file for logic and tests added