Added basic framework for gate objects