Exercises while going thru Head First Java