Implement a Python class Calculator in a file named /app/solution.py that performs basic arithmetic operations. The class should have the following functionality:
Addition: Implement a method add(a: float, b: float) -> float that returns the sum of a and b.
Subtraction: Implement a method subtract(a: float, b: float) -> float that returns the result of subtracting b from a.
Multiplication: Implement a method multiply(a: float, b: float) -> float that returns the product of a and b.
Division: Implement a method divide(a: float, b: float) -> float that returns the result of dividing a by b. If b is zero, the method should raise a ValueError with the message "Cannot divide by zero."
The methods should handle both integer and floating-point numbers. Ensure that all methods return a float for consistency.
The implemented class should be compatible with the following test cases:
calc = Calculator()
calc.add(3, 5) should return 8.0
calc.subtract(10, 4) should return 6.0
calc.multiply(2, 3) should return 6.0
calc.divide(8, 2) should return 4.0
calc.divide(5, 0) should raise a ValueError.
Once the above functionality is implemented accordingly, the tests will pass.