training interface for sinatra