Implementation for a, aa and aaa with discount