in progress: trying to get input and output working