added "update" method to account class