Task Description: Implement a Simple Calculator Class
You need to implement a Python class called Calculator that performs basic arithmetic operations: addition, subtraction, multiplication, and division. The specific requirements are as follows:
Class Definition: Create a class named Calculator in the file /app/solution.py.
Initialization: The class should have an __init__ method that initializes an internal attribute to store the last result, starting at zero.
Methods:
Implement an add method that takes one argument (a number) and adds it to the last result. The method should return the new last result.
Implement a subtract method that takes one argument (a number) and subtracts it from the last result. The method should return the new last result.
Implement a multiply method that takes one argument (a number) and multiplies it with the last result. The method should return the new last result.
Implement a divide method that takes one argument (a number) and divides the last result by that number. If the argument is zero, the method should raise a ValueError with the message "Cannot divide by zero." If successful, the method should return the new last result.
Return Values: Each method should return the result after the operation.
Initial State: If no operations have been performed, the initial last_result should be zero.
Ensure to keep all calculations accurate and handle edge cases, like division by zero, as specified.
The implementation must be located in the /app/solution.py file and should meet the given functionality requirements to pass the associated test code.