#!/usr/bin/env mio

Account = Object clone do(
    balance = 0
    deposit = method(v, self balance = self balance + v)
    withdraw = method(v, self balance = self balance - v)
    show = method(print("Account balance: $", self balance))
)

myAccount = Account clone
myAccount show()

print("Depositing $10")
myAccount deposit(10)
myAccount show()
