You are required to implement a simple calculator that can perform basic arithmetic operations including addition, subtraction, multiplication, and division. The functionality must be encapsulated in a single class called Calculator, which should provide methods to carry out these operations.
Requirements:
Create a class named Calculator with the following methods:
add(self, a: float, b: float) -> float: Returns the sum of a and b.
subtract(self, a: float, b: float) -> float: Returns the difference of a and b.
multiply(self, a: float, b: float) -> float: Returns the product of a and b.
divide(self, a: float, b: float) -> float: Returns the quotient of a divided by b. Raise a ValueError if b is zero.
The methods should handle both integer and float inputs and return results in the same type as the inputs.
Implement all methods in a single file called /app/solution.py.
Your implementation must ensure that each of these methods accurately performs the required calculation, and the division method correctly raises an exception for division by zero scenarios. This will fulfill the conditions laid out in the provided tests.