Ruby script for aligning