Test code for learning