A couple of update methods implemented

A couple of update methods implemented. I also wrote unit tests for
them.