Created Browser class and refactored