Convert shortcode to OOP