Implemented classes and basic functonality.