Got Help from W3Schools for some of coding