Added boolean assignment and printing