Adding new code

still don't know what's going wrong with input capture