Troubleshooting and making it compile