Replaced the Word class with a class for alignments