begin to write solution