this is my version of jba after the 8th part of the tutorial