Initial directory class implementation.