Enhanced for-loop for User-defined objects