A ruby helper to improve basic class