Issue1

Implementation for #1.