Added some code and copied example code