Implement a class called Calculator in the file /app/solution.py that provides basic arithmetic functionality. The Calculator class should have the following methods:
Addition:
Method: add(a: float, b: float) -> float
This method should return the sum of a and b.
Subtraction:
Method: subtract(a: float, b: float) -> float
This method should return the result of a - b.
Multiplication:
Method: multiply(a: float, b: float) -> float
This method should return the product of a and b.
Division:
Method: divide(a: float, b: float) -> float
This method should return the result of a / b.
If b is zero, it should raise a ValueError with the message "Cannot divide by zero."
All methods should handle floating-point numbers correctly, and ensure that any arithmetic operation adheres to standard mathematical rules. Once implemented, this class should pass the provided test code which includes various assertions for each method of the Calculator class.