prepared given exercise code for further development