skeleton code for handling input