A simple program which implements an ls from scratch