Fixed namespace error because classes were defined incorrectly