Classes not throwing errors