Wrote another logic method