Working version of show_records subroutine