checking in sample code and hw1