added cube animation and audio frequency function