working some exercises and writing some defines