Implement Horizontal and Vertical alignment