hw2 added ls.cpp