added hero and platform class