Change the name of main class to Triangle1st to match the requirements
of assignment