fixed errors after parseFloat discussion in class