create solve method, use object variables