added code and resources