Retaking a test and average calculation