change getAminoAcids() structure to incorporate new class