added my init function and declared variables