Texas teen writes officer ticket for improper parking