fixed errors in exercise 13 , i needed to create a companion object