Code for udasity classes