Effects of attitudes and beliefs on mathematics achievement