v 0.3.0 beta

re-implement the program. submitted without debug