J.P. Morgan interview question

How do you implement custom annotations?