wrote basic function for ls -a