added basic input functionality