created IDirection and ISpeed interfaces and classes that implements it