Implement a class called Calculator in a file named /app/solution.py that provides basic arithmetic operations. The class should have the following functionality:
Addition:
Method: add(x: float, y: float) -> float
Returns the sum of x and y.
Subtraction:
Method: subtract(x: float, y: float) -> float
Returns the result of subtracting y from x.
Multiplication:
Method: multiply(x: float, y: float) -> float
Returns the product of x and y.
Division:
Method: divide(x: float, y: float) -> float
Returns the result of dividing x by y.
If y is 0, this method should raise a ValueError with the message "Cannot divide by zero."
Specific Requirements:
The Calculator class should not take any parameters during initialization.
Each method should accept two floating-point numbers (x and y) as arguments.
Ensure that the division method handles division by zero correctly by raising the appropriate exception.
Once implemented, the functionality must pass all provided tests that check for correct arithmetic operations and error handling. The code must be clean, well-structured, and adhere to standard Python coding conventions.