completed the exercise
added some more info about constraints