code for scene classification