The following class is doing word wrapping perfectly.