updated to include msa functions for use in assignment 4