write code and reflection