refactor amino acid class