implemented complex calculator class

this is my first java assignment