Implemented part of Menu and main function