added calculate function to button with sample values for inputs