simple directory class