Closes #14 update_attributes now can take a block