doing IO exercise, but havent finished
have a half working method for Ui