sample code and specs