console class not working