added license and my ugly code