Work10

Added end boolean