Added basic logic gates