pragma solidity ^0.5.0;

contract Contract1 {
	address payable creator;

	uint256 counter = 0;

	constructor() public{
		creator = msg.sender;
	}

	function inc() public {
		counter++;
	}
 
	function dec() public { //decreases counter by 1
		counter--;
	}
   
	function getCounter() public view returns (uint256) {
		return counter;
	} 

	function kill() public {
		if (msg.sender == creator) {
			selfdestruct(creator);
		}
	}
}
