Added functions to input values, display triangles