added getAttachment method to Client class