Basic vertex code