+ def overdue_videos
+ coitems = Coitem.find_all_by_customer_id(id)
+ overdue_video_count = 0
+
+ for item in coitems
+ if item.rentable.class == Video and item.overdue?
+ overdue_video_count += 1
+ end
+ end
+
+ return overdue_video_count
+ end
+
+ def overdue_games
+ coitems = Coitem.find_all_by_customer_id(id)
+ overdue_game_count = 0
+
+ for item in coitems
+ if item.rentable.class == Game and item.overdue?
+ overdue_game_count += 1
+ end
+ end
+
+ return overdue_game_count
+ end
+