Added samples and listdir function