code from week 11, sorry that it wasn't very