Logic Building In Programming