Added catalan method