Build asteroid class and basic utility functions