Use class

http://book.mixu.net/node/ch6.html