implemented horizontal alignment on paragraph