solved first exercise