Abstracted protein_synthesis code using structs to group commonly paired variables and encapsulating the math details into separate functions