learned how to create class like things in lua finally so I took out other peoples code