Completed typing in bitstarter code from Coursera