experimental implementation of the buffer as a Value Class and a polymorphic function for buffer add operations