first draft of hw-all three java files are complete