Learning Java by creating simple calculator