added beginnings of input functionality