Easy program using reflection