You are required to implement a class named Calculator in a file called /app/solution.py that provides basic arithmetic functionalities. The class should have the following methods:
add(a: float, b: float) -> float: Returns the sum of two numbers a and b.
subtract(a: float, b: float) -> float: Returns the result of subtracting b from a.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the result of dividing a by b. If b is zero, it should raise a ValueError with the message "Cannot divide by zero."
Requirements to ensure the tests pass:
The add, subtract, and multiply methods must handle both integer and float inputs and return the correct result.
The divide method must check for division by zero and raise the appropriate exception.
You must define the Calculator class at the top level of the /app/solution.py file.
Make sure to follow these specifications closely as they correspond to the provided test code that verifies these functionalities.