Added method to calculate relative major