implemented list#put()