Added comments for logic class