pragma solidity ^0.4.17; /*To rent, Alice needs to make a deposit of x ether. Bob needs to add a function such that Alice can pay the deposit and Bob also wants to see the balance in the contract so he needs to add one more function to check the balance in his contract. The rent function allows the Alice to pay the deposit and getBalance function allows bob to view the balance in the contract.*/ contract Car { string model; uint256 daily_rate; function Car(string argmodel,uint256 arg_daily_rate) payable public { model = argmodel; daily_rate = arg_daily_rate; } function getCarModel() public view returns(string) { return model; } function setDailyRate(uint256 arg_dailyRate) public { daily_rate = arg_dailyRate; } function getDailyRate () public view returns (uint256) { return daily_rate; } function rent() payable public { } function getBalance() public view returns(uint256) { return address(this).balance; } }