iterating using a foreach
iterating using a simple while
refactored calculator app with eclipse's refactor shortcut
tweaks