Added `update` method (closes #6)