A sample code solutions