Task Description: Implement a Simple Calculator Functionality
You need to implement a simple calculator functionality that supports basic arithmetic operations: addition, subtraction, multiplication, and division. The implementation should be placed in the /app/ directory.
Requirements:
Create a class named Calculator that performs the following operations:
add(a: float, b: float) -> float: Returns the sum of 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. The method should raise a ValueError if b is zero.
Ensure that the methods handle both integer and float inputs.
Write each operation as a separate method within the Calculator class.
The implementation should pass the provided test cases in the existing test files when the operations are invoked on the Calculator class.
By fulfilling these requirements, you will create a functional calculator that is ready for further development and testing.