migrated homework2 to WorldPlugin