add save method

Signed-off-by: Kazuki Kubo <kz@assaulter.org>