Trying to re-implement the uart from lab 2