Leave summary implemented.Ready for code review