implemented first gate, pi over eight