Dynamic method using eval