gen gilbert input for lab 2