save method implemented.