Liverpool agree terms with their second signing of the summer