implemented template method pattern

Created template method, implemented Salary calculation by country