completed the binary star portion of the assignment