create a util class for vertical middle