Created a separate Client class