Added implementation for record method elems()