Updated calc(String)

filled out the calc(String) method