created a call function for problem input