code for the rainscapes project